package org.su.generalmvc.config;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamImplicit;
import com.thoughtworks.xstream.annotations.XStreamOmitField;

import java.util.List;

public class InterceptorMapping {
	@XStreamOmitField
	@XStreamImplicit(itemFieldName="interceptor")
	private List<BeanMapping> interceptors;
	
	@XStreamOmitField
	@XStreamImplicit(itemFieldName="interceptor-stack")
	private List<InterceptorStack> InterceptorStack;
	
	@XStreamOmitField
	@XStreamAlias("default-interceptor-ref")
	private InterceptorRef defaultInterRef;
	
	public InterceptorRef getDefaultInterRef() {
		return defaultInterRef;
	}

	public List<InterceptorStack> getInterceptorStack() {
		return InterceptorStack;
	}

	public List<BeanMapping> getInterceptors() {
		return interceptors;
	}

}
